package com.wy.dao;

import com.wy.model.sys.FeeRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FeeRecordMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FeeRecord record);

    int insertSelective(FeeRecord record);

    FeeRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FeeRecord record);

    int updateByPrimaryKey(FeeRecord record);

    List<FeeRecord> feeRecordList(@Param("pageSize")Integer pageSize, @Param("start")Integer start, @Param("residenceId")Integer residenceId,
                                  @Param("feeName")String feeName, @Param("feeStatus")String feeStatus, @Param("feeType")String feeType,
                                  @Param("houseId")Integer houseId, @Param("rids")List<String> rids,@Param("buildingId")Integer buildingId);

    Integer feeRecordSize(@Param("pageSize")Integer pageSize, @Param("start")Integer start, @Param("residenceId")Integer residenceId,
                          @Param("feeName")String feeName, @Param("feeStatus")String feeStatus, @Param("feeType")String feeType,
                          @Param("houseId")Integer houseId, @Param("rids")List<String> rids,@Param("buildingId")Integer buildingId);

    List<FeeRecord> feeRecordList4App(@Param("feeStatus")String feeStatus, @Param("feeType")String feeType, @Param("houseId")Integer houseId);

    void insertBatch(List<FeeRecord> list);

}